package com.bo.ioc.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logger")
public class LoggerController {
    private Logger logger = LoggerFactory.getLogger(LoggerController.class);
    @RequestMapping("/traceRun")
    public void traceRun(){
        logger.trace("打印trace日志");
    }
    public void debugRun(){
        logger.debug("打印debug日志");
    }
    public void infoRun(){
        logger.info("打印日志");
    }
    public void warnRun(){
        logger.warn("打印警告日志");
    }
    public void errorRun(){
        logger.error("打印突发日志");
    }
}
